package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.entity.product.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Windows
* @description 针对表【category(商品分类)】的数据库操作Service
* @createDate 2024-01-30 11:23:20
*/
public interface CategoryService extends IService<Category> {

    /**
     * 通过父节点ID获取该节点下的子分类
     * @param parentId
     * @return
     */
    List<Category> findByParentId(Long parentId);

    /**
     * 导出（下载）数据
     * @param response
     */
    void exportData(HttpServletResponse response);

    /**
     * 从excel导入数据
     * @param file
     */
    void importData(MultipartFile file);
}
